From: Debian Science Maintainers Date: Wed, 8 Apr 2026 14:43:38 +0000 (+0200) Subject: Check that _Float16 is available before using it in openblas_config.h X-Git-Tag: archive/raspbian/0.3.32+ds-5+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/%22mailto:kde%40ewsoftware.de//%22style.css/%22/%22http:/www.example.com/%22mailto:kde%40ewsoftware.de/%22style.css/%22?a=commitdiff_plain;h=feb9897d5a27ab67d32cb6a8d7aba5e75460be3c;p=openblas.git Check that _Float16 is available before using it in openblas_config.h Origin: upstream, https://github.com/OpenMathLib/OpenBLAS/commit/dc32a8a90f6e9169a6444826fcd55e0645db708c https://github.com/OpenMathLib/OpenBLAS/commit/e926bb0523f1d001948a2214f213ec766d5d4414 Bug: https://github.com/OpenMathLib/OpenBLAS/issues/5747 Reviewed-by: Sébastien Villemot Last-Update: 2026-04-08 Fixes development package on armhf, s390x and sparc64. Last-Update: 2026-04-08 Gbp-Pq: Name _Float16-redux.patch --- diff --git a/openblas_config_template.h b/openblas_config_template.h index 660a7da..e91cbea 100644 --- a/openblas_config_template.h +++ b/openblas_config_template.h @@ -43,7 +43,14 @@ typedef uint16_t bfloat16; #if defined(OPENBLAS_ARCH_POWER) || defined(OPENBLAS_ARCH_LOONGARCH64) typedef bfloat16 hfloat16; #else +#define __STDC_WANT_IEC_60559_TYPES_EXT__ +#include +#ifdef FLT16_MAX typedef _Float16 hfloat16; +#else +#include +typedef uint16_t hfloat16; +#endif #endif #else #include